<script setup lang="ts">
const counter = useState('counter', () => Math.round(Math.random() * 1000))
const sameCounter = useState('counter')
</script>

<template>
    <div>
        Counter: {{ counter }}
        <button @click="counter++"> + </button>
        <button @click="counter--"> - </button>
    </div>
    <div>
        Same Counter: {{ sameCounter }}
    </div>
</template>